<script type="text/javascript">
    $(function() {
        $.fn.dataGridOptions.formSubFun("#form",'/modules/user/score/convert/doVerify.html');     
    });
</script>
<div class="popShow" style="padding-bottom:0">
        <div class="showItem">
            <span>会员名：</span>${user.userName!}
        </div>
        <div class="showItem">
            <span>商品名 ：</span>${goods.name!}
        </div>
        <div class="showItem">
            <span>积分兑换份额：</span>${item.convertNum!}份
        </div>
        <div class="showItem">
            <span>消费积分：</span>${item.score!}
        </div>
        <div class="showItem">
            <span>市场价：</span>${goods.marketPrice!}
        </div>
        <div class="showItem">
            <span>状态：</span>
            <#if item.status == 0 >
            	待审核
            <#elseif item.status ==1 >
            	审核通过
            <#elseif item.status ==-1 >
            	审核未通过
            <#elseif item.status ==2 >
            	已发货
             <#elseif item.status ==3 >
             	已收货
            </#if>
        </div>
        <div class="showItem">
            <span>收货人名：</span>${item.receiver!}
        </div>
</div>
<div style="line-height:30px;font-size:14px;padding-bottom: 5px;">
       <span style="width:150px;display:inline-block;text-align:right;padding-right:10px;color:#333;">收货地址：</span>${item.receiveAddress!}
</div>
<div class="popShow" style="padding-top:0;padding-bottom:0;">
        <div class="showItem">
            <span>收货人手机：</span>${item.receiveMobile!}
        </div>
        <div class="showItem">
            <span>收货人电话：</span>${item.receivePhone!}
        </div>
        <div class="showItem">
            <span>添加时间：</span>${item.addTime?string("yyyy-MM-dd HH:mm:ss")}
        </div>
        <div class="showItem" title="${item.remark!}">
            <span>用户备注：</span>${item.remark!}
        </div>
</div>
<form id="form" method="post">
<div class="popForm" style="padding-top:0;">
	<div class="formitm">
		<label style="width:130px;" class="lab">是否通过：</label>
		<div style="margin-left:140px;" class="ipt">
			<input type="radio" name="status" class="easyui-validatebox" value="1" data-options="required: true"/>通过
			<input type="radio" name="status" class="easyui-validatebox" value="-1" checked="checked" data-options="required: true"/>不通过
		</div>
	</div>
	<div class="formitm">
		<label style="width:130px;" class="lab">审核备注：</label>
		<div style="margin-left:140px;" class="ipt">
			<textarea id="verifyRemark" name="verifyRemark"  maxlength="255" class="w300 easyui-validatebox" data-options="required: true"></textarea>
		</div>
		<div class="ipt">
		    <span>还能输入<em id="remarkNum">255</em>字</span>
		</div>
	</div>
	<input name="verifyToken" value="${verifyToken!}" type="hidden">
	<input name="id" value="${item.id}" type="hidden"/>	
</div>
</form>

<script type="text/javascript">
	$(".fileshow").fancybox();
	
	$("#verifyRemark").keyup(function(){
		var numLast = 255;
		var numNow = $("#verifyRemark").val().length;
		var textLong = 0;
		var remark = $("#verifyRemark").val();
		
		if(remark.length > 255){
			$("#verifyRemark").val() = remark.substr(0,255);
			$("#remarkNum").empty();
			$("#remarkNum").append(0);
		}
		if( numNow >= 0 && numNow <= 255){
			textLong = $("#verifyRemark").val().length;
			numNow = numLast - textLong;
			$("#remarkNum").empty();
			$("#remarkNum").append(numNow);
	  	}
  	});
</script>